<template>
	<view class="label-index">
		<view class="imageMap" @click="map()">
			<view class="title">
				地图找需求
			</view>
			<view class="content">
				简单高效
			</view>
		</view>
		<view class="imageMap1" @click="editMemberResume()">
			<view class="title">
				刷新接单
			</view>
			<view class="content">
				提升接单活跃
			</view>
		</view>
	</view>
</template>

<script>
	import * as user from '@/api/user.js'
	export default {
		data() {
			return {

			}
		},
		methods: {
			map() {
				// this.$Router.push({
				// 	name: 'MapSearch',
				// })
				this.$tools.navigate('/pages/home/mapSearch/index')
			},
			resume() {
				uni.navigateToMiniProgram({
					appId: 'wx3abbf29c737c93a6',
					path: '',
					extraData: {
						'data1': 'trial'
					},
					success(res) {
						// 打开成功
					}
				})
			},
			editMemberResume(){
				user.editMemberResume({edit:'sxjl'}).then(res=>{
					if(res.msg == '操作失败') {
						this.$tools.toast(res.data)
					} else {
						this.$tools.succend('刷新成功！')
					}
				})
			}
			
		}
	}
</script>

<style scoped lang="scss">
	.label-index {
		font-family: PingFang SC-Medium, PingFang SC;
		margin-top: 20rpx;
		// width: calc(100% - 30rpx);
		padding: 0 20rpx;
		display: flex;
		justify-content: space-between;
		height: 146rpx;
		.imageMap {
			width: 310rpx;
			height: 126rpx;
			background: url(https://mp.wanhedashuju.com/uploads/20220611/c7502852a8681d0abf7a49aeaa2608f7.png);
			background-repeat: no-repeat;
			background-size: 100%;
			padding: 20rpx;

			.title {
				font-size: 30rpx;
				font-weight: 700;
				color: #202020;
				line-height: 35rpx;
			}

			.content {
				margin-top: 16rpx;
				font-size: 20rpx;
				color: #202020;
				line-height: 23rpx;
				opacity: 0.5;
			}
		}

		.imageMap1 {
			width: 310rpx;
			height: 126rpx;
			background: url(https://mp.wanhedashuju.com/uploads/20220615/e932760fd40a0172bd15f4429abc9707.png);
			background-repeat: no-repeat;
			background-size: 100%;
			padding: 20rpx;

			.title {
				font-size: 30rpx;
				font-weight: 700;
				color: #202020;
				line-height: 35rpx;
			}

			.content {
				margin-top: 16rpx;
				font-size: 20rpx;
				color: #202020;
				line-height: 23rpx;
				opacity: 0.5;
			}
		}
	}
</style>
